package home

import (
	"gf/app/service"
	"gf/library/response"
	"github.com/gogf/gf/net/ghttp"
)

var ArticleCategory = articleCategoryApi{}

type articleCategoryApi struct {

}

func (a *articleCategoryApi) List(r *ghttp.Request) {
	getListRes, _,err := service.ArticleCategory.List(r.Context(),0)
	if err != nil {
		response.JsonExit(r, 1, err.Error())
	}

	response.JsonExit(r, 0, "ok", getListRes)
}
